import { version } from '../package'

const setting = {
  project: {
    name: 'mboot-frontend-vue'
  },
  cookies: {
    prefix: 'SYS'
  },
  menu: {
    // [侧边栏宽度] 正常状态
    asideWidth: '200px',
    // [侧边栏宽度] 折叠状态
    asideWidthCollapse: '65px',
    // 侧边栏默认折叠状态
    asideCollapse: false
  },
  // 在读取持久化数据失败时默认页面
  page: {
    opened: [
      {
        name: 'index',
        meta: {
          title: '首页',
          requiresAuth: false
        }
      }
    ]
  },
  // 版本
  releases: {
    version: version,
    api: 'https://api.github.com/repos/FairyEver/d2-admin/releases/latest'
  },
  // 是否默认开启页面切换动画
  transition: {
    active: true
  }
}

export default setting
